package struts.factory;

import java.lang.annotation.Annotation;
import java.util.Arrays;

public class Bean {
	private Class<?> clazz;// 类
	private String methodName;// 方法名
	private String methodUrl;// 方法访问的url
	private Annotation[] methodAnnotations;// 方法参数
	private Class<?>[] parameterTypes;// 方法列表
	private Class<?> returnType;// 返回值
	public Class<?> getClazz() {
		return clazz;
	}
	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	public String getMethodUrl() {
		return methodUrl;
	}
	public void setMethodUrl(String methodUrl) {
		this.methodUrl = methodUrl;
	}
	public Annotation[] getMethodAnnotations() {
		return methodAnnotations;
	}
	public void setMethodAnnotations(Annotation[] methodAnnotations) {
		this.methodAnnotations = methodAnnotations;
	}
	public Class<?>[] getParameterTypes() {
		return parameterTypes;
	}
	public void setParameterTypes(Class<?>[] parameterTypes) {
		this.parameterTypes = parameterTypes;
	}
	public Class<?> getReturnType() {
		return returnType;
	}
	public void setReturnType(Class<?> returnType) {
		this.returnType = returnType;
	}
	public Bean(Class<?> clazz, String methodName, String methodUrl, Annotation[] methodAnnotations, Class<?>[] parameterTypes, Class<?> returnType) {
		super();
		this.clazz = clazz;
		this.methodName = methodName;
		this.methodUrl = methodUrl;
		this.methodAnnotations = methodAnnotations;
		this.parameterTypes = parameterTypes;
		this.returnType = returnType;
	}
	@Override
	public String toString() {
		return "Bean [clazz=" + clazz + ", methodName=" + methodName + ", methodUrl=" + methodUrl + ", methodAnnotations=" + Arrays.toString(methodAnnotations) + ", parameterTypes=" + Arrays.toString(parameterTypes) + ", returnType=" + returnType + "]";
	}
	public Bean() {
		super();
	}
	
	
	

}
